<%@page language="java" pageEncoding="UTF-8"%>
<%
	String divId = request.getParameter("divId");
	String formId = request.getParameter("formId");
	String splitPageDiv = request.getParameter("splitPageDiv");
	
	request.setAttribute("divId", divId);
	request.setAttribute("formId", formId);
	request.setAttribute("splitPageDiv", splitPageDiv);
 %>
<script type="text/javascript">
	$(document).ready(function() {
		var divId = "${divId}"; 							// 分页显示div
		var formId = "${formId}"; 							// 分页formId
		var splitPageDiv = "${splitPageDiv}"; 				// 分页输出显示的div
		
		var totalRow = ${pagination.total};			// 总行数
		var pageSize = ${pagination.pageSize};			// 每页显示多少条
		var pageNumber = ${pagination.current};		// 当前第几页 
		var totalPages = ${pagination.totalPages};		// 总页数 
		var currentPageCount = ${pagination.currentPageCount};		// 当前页记录数量

		var isSelectPage = true;							// 是否显示第几页
		var isSelectSize = true;							// 是否显示每页显示多少条
		
		var orderColunm = "${orderParam.orderColunm}"; 		// 表格排序的列
		var orderMode = "${orderParam.orderMode}";			// 排序的方式

		// 获取分页HTML信息
		var splitStr = common_splitPage.splitPage(divId, formId, totalRow, pageSize, pageNumber, totalPages, isSelectPage, isSelectSize, orderColunm, orderMode, currentPageCount);
		// 显示分页信息
		$("#" + splitPageDiv).html(splitStr);
		common_splitPage.orderbyFun(divId, formId, orderColunm, orderMode);
	});
</script>